//Copyright 2012 Trevin Liberty
//GNU GPL v3
//Author: Trevin Liberty
//
//Sprite that represents a flagpole.
//There are four different colors: black, blue, green, yellow

#ifndef FLAG_H
#define FLAG_H

#include "MovingSprite.h"

//See comment at top of file for a complete description
class Flag : public MovingSprite {
	private:
	static Slide* black;
	static Slide* blue;
	static Slide* green;
	static Slide* yellow;

	//1, 2, 3, 4
	//Black, Blue, Green, Yellow
	char type;

	void loadBitmap();

public:
	//Constructor
	//	PARAMS:
	//char type: 1 for black, 2 blue, 3 green, 4 yellow.
	//	ATTN: Any other input for type will give undefined results
	//Point<float> pos: screen position of the flag.
	Flag(char type, Point<float> pos);

	void update();
	void draw(Point<float> camPos);

	void deleteImages();
};

#endif